package com.freewater.cargotracker.domain.model.handlingevent;

import com.freewater.cargotracker.domain.model.cargo.TrackingId;

public class UnknownCargoException extends CannotCreateHandlingEventException {

    private static final long serialVersionUID = 1L;

    private TrackingId trackingId;

    public UnknownCargoException(TrackingId trackingId) {
        this.trackingId = trackingId;
    }

    @Override
    public String getMessage() {
        return "No cargo with tracking id " + trackingId.getIdString()
                + " exists in the system";
    }
}
